package business.report.impl;

import business.report.EnergyRatingAgenciesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.EnergyRatingAgencies;
import report.domain.EnergyRatingAgenciesCriteria;
import report.mapper.EnergyRatingAgenciesMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "energyRatingAgenciesService")
public class EnergyRatingAgenciesServiceImpl implements EnergyRatingAgenciesService{
    @Autowired
    EnergyRatingAgenciesMapper energyRatingAgenciesMapper;

    @Override
    public List<EnergyRatingAgencies> getEnergyRatingAgencies() {
        EnergyRatingAgenciesCriteria criteria = new EnergyRatingAgenciesCriteria();
        criteria.createCriteria().getAllCriteria();
        return energyRatingAgenciesMapper.selectByExample(criteria);
    }
}
